<%@page import="classeMetier.UserStory"%><%@
page import="java.io.PrintWriter"%><%@ 
page contentType="text/html;charset=UTF-8" %><%@ 
page import="java.sql.*" %><%@ 
page import="java.sql.DriverManager" %><%@ 
page import="java.sql.ResultSet" %><%

classeMetier.ObjectDB db = new classeMetier.ObjectDB();
try{
	db.initialiseConnexion();
	classeMetier.UserStory myUs = new classeMetier.UserStory(db, 
		request.getParameter("userstory_id"),
		request.getParameter("userstory_name"),
		request.getParameter("userstory_description"),
		request.getParameter("userstory_comment"), 
		request.getParameter("userstory_business_value"),
		request.getParameter("userstory_parent")
	);
	
	if(myUs.addDB()){
		out.print("La userstory a bien été créé");	
	}else{
		response.setStatus(500,"enregistrement error !");	
	}
	db.closeConnexion();
	
}catch(Exception e){
	response.setStatus(500,"error");	
}
%>

